]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
popupMenu: Append ornament in image menu items
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 23 Jul 2022 15:04:57 +0000 (17:04 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 27 Jul 2022 13:39:02 +0000 (13:39 +0000)
Having both image and ornament in front of the label looks odd.

Keep the image where it is, and move the ornament to the end.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2389>

js/ui/popupMenu.js

index 6c5549d35cd544c03b52057b59d2a1a27aa81b3f..c7e66a5ccd9cd0d670c2ea9b32ae409d73563dff 100644 (file)
@@ -468,6 +468,8 @@ class PopupImageMenuItem extends PopupBaseMenuItem {
         this.add_child(this.label);
         this.label_actor = this.label;
 
+        this.set_child_above_sibling(this._ornamentLabel, this.label);
+
         this.setIcon(icon);
     }